﻿CREATE TABLE [dbo].[Phones]
(
	[Id]		[UNIQUEIDENTIFIER]		NOT NULL,
	[TenantId]	[BIGINT]				NULL,
	[AreaCode]	[VARCHAR](5)			NOT NULL,
	[Number]	[VARCHAR](20)			NOT NULL,
	[Extension]	[VARCHAR](40)			NULL,
	[CreatedAt]	[DATETIME]				NOT NULL,
	CONSTRAINT PK_Phones PRIMARY KEY ([Id]),
	CONSTRAINT FK_Phones_Tenants FOREIGN KEY ([TenantId]) REFERENCES [dbo].[Tenants]([Id])
)
